# 依赖: choco install ffmpeg
from markitdown import MarkItDown

# 初始化转换器
markitdown = MarkItDown()

def to_pdf(path: str):
    # 转换不同类型的文件
    # PDF文档
    pdf_result = markitdown.convert(path)
    print(pdf_result.text_content)


if __name__ == "__main__":
    import fire
    fire.Fire(to_pdf)
